﻿using System;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using FwProject.Authorization.Users;
using FwProject.Core.Car;
namespace FwProject.Core.Restaurant
{
    /// <summary>
    /// 餐厅绑定的人员
    /// </summary>
    [Table("RestaurantUserInfo")]
    public class RestaurantUserInfo: FullAuditedEntity<Guid>
    {  

      
        public Guid? RestaurantInfoId { get; set; }
        [ForeignKey("RestaurantInfoId")]
        public virtual RestaurantInfo RestaurantInfoModel { get; set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        /// <value>The employee restaurant identifier.</value>
      
        public long EmployeeRestaurantId { get; set; }
        /// <summary>
        /// 用户对象
        /// </summary>
        /// <value>The employee restauran user.</value>
        [ForeignKey("EmployeeRestaurantId")]
        public virtual User EmployeeRestauranUser { get; set; }
    }
}
